package com.fansaikj.erp.domain;

/*
 * Copyright © 2020-2035 erupt.xyz All rights reserved.
 * Author: YuePeng (erupts@126.com)
 */

import javax.persistence.*;

import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.erupt.annotation.*;
import xyz.erupt.annotation.sub_field.*;
import xyz.erupt.annotation.sub_field.sub_edit.*;
import xyz.erupt.jpa.model.BaseModel;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Erupt(name = "结算单位")
@Table(name = "erp_settlement_company")
@Entity
@Data
public class SettlementCompany extends BaseModel {

    @EruptField(
            views = @View(
                    title = "主键ID", show = false
            ),
            edit = @Edit(
                    title = "主键ID",
                    type = EditType.INPUT, show = false, notNull = true,
                    inputType = @InputType
            )
    )
    private Long id;

    @EruptField(
            views = @View(
                    title = "单位名称"
            ),
            edit = @Edit(
                    search = @Search(vague = true),
                    title = "单位名称",
                    type = EditType.INPUT,
                    inputType = @InputType
            )
    )
    private String name;

    @EruptField(
            views = @View(
                    title = "税号"
            ),
            edit = @Edit(
                    search = @Search(vague = true),
                    title = "税号",
                    type = EditType.INPUT,
                    inputType = @InputType
            )
    )
    private String creditNo;

    @EruptField(
            views = @View(
                    title = "地址"
            ),
            edit = @Edit(
                    title = "地址",
                    type = EditType.INPUT,
                    inputType = @InputType
            )
    )
    private String addrDetail;

    @EruptField(
            views = @View(
                    title = "电话"
            ),
            edit = @Edit(
                    title = "电话",
                    type = EditType.INPUT,
                    inputType = @InputType
            )
    )
    private String phone;

    @EruptField(
            views = @View(
                    title = "开户银行"
            ),
            edit = @Edit(
                    title = "开户银行",
                    type = EditType.INPUT,
                    inputType = @InputType
            )
    )
    private String openBank;

    @EruptField(
            views = @View(
                    title = "银行账号"
            ),
            edit = @Edit(
                    search = @Search(vague = true),
                    title = "银行账号",
                    type = EditType.INPUT,
                    inputType = @InputType
            )
    )
    private String bankAccount;

    @EruptField(
            views = @View(
                    title = "开户行号"
            ),
            edit = @Edit(
                    title = "开户行号",
                    type = EditType.INPUT,
                    inputType = @InputType
            )
    )
    private String bankCode;

    @EruptField(
            views = @View(
                    title = "创建人", show = false
            ),
            edit = @Edit(
                    title = "创建人",
                    type = EditType.INPUT, show = false,
                    inputType = @InputType
            )
    )
    private String createBy;

    @EruptField(
            views = @View(
                    title = "创建时间", show = false
            ),
            edit = @Edit(
                    title = "创建时间",
                    type = EditType.DATE, show = false,
                    dateType = @DateType
            )
    )
    private Date createTime;

    @EruptField(
            views = @View(
                    title = "修改人", show = false
            ),
            edit = @Edit(
                    title = "修改人",
                    type = EditType.INPUT, show = false,
                    inputType = @InputType
            )
    )
    private String updateBy;

    @EruptField(
            views = @View(
                    title = "修改时间", show = false
            ),
            edit = @Edit(
                    title = "修改时间",
                    type = EditType.DATE, show = false,
                    dateType = @DateType
            )
    )
    private Date updateTime;

    @EruptField(
            views = @View(
                    title = "备注"
            ),
            edit = @Edit(
                    title = "备注",
                    type = EditType.TEXTAREA
            )
    )
    private String remark;

    @EruptField(
            views = @View(
                    title = "删除状态(0-正常,1-已删除)", show = false
            ),
            edit = @Edit(
                    title = "删除状态(0-正常,1-已删除)",
                    type = EditType.INPUT, show = false,
                    inputType = @InputType
            )
    )
    private String delFlag;

}
